<template>
  <div>当前计数:{{ mainStore.count }}</div>
  <a-button @click="mainStore.CHANGE_COUNT(1)">+1</a-button>
  <a-button @click="mainStore.CHANGE_COUNT(-1)">-1</a-button>
</template>

<script setup lang="ts">
import useGlobal from '@/hooks/useGlobal'
const { mainStore } = useGlobal()
</script>

<style scoped></style>
